package org.example.tms.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

//id username psassword name gender phone job salary image entry_date dept_id create_time update_time
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp {
       private Integer id;
       private String username;
       private String password;
       private String name;
       private Integer gender;
       private String phone;
       private Integer job;
       private Integer salary;
       private String image;
       private LocalDate entryDate;
       private Integer deptId;
       @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
       private LocalDateTime createTime;
       @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
       private LocalDateTime updateTime;
       //数据库并没有此字段名
       @TableField(exist = false)
       private String deptName;

       @TableField(exist = false)
       private List<EmpExpr> exprList;  //工作经历



}
